package cyapps.gui;

import javax.swing.UIManager;


public enum Layout {
	
	SYSTEM(UIManager.getSystemLookAndFeelClassName()),
	WINDOWS("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"),
	WINDOWS_CLASSIC("com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel"),
	MOTIF("com.sun.java.swing.plaf.motif.MotifLookAndFeel"),
	GTK("com.sun.java.swing.plaf.gtk.GTKLookAndFeel"),
	NIMBUS("javax.swing.plaf.nimbus.NimbusLookAndFeel"),
	METAL("javax.swing.plaf.metal.MetalLookAndFeel");
	
	String path;
	
	Layout(String path) {
		this.path = path;
	}
	
	public static boolean setLayout(Layout lookAndFeel) {
		try {
			UIManager.setLookAndFeel(lookAndFeel.path);
			return true;
		} catch (Exception e) {
			return false;
		}
		
	}
	
}
